func net/http/pprof.serveError
15 uses
net/http/pprof (current package)
pprof.go#L109: func serveError(w http.ResponseWriter, status int, txt string) {
pprof.go#L128: serveError(w, http.StatusBadRequest, "profile duration exceeds server's WriteTimeout")
pprof.go#L138: serveError(w, http.StatusInternalServerError,
pprof.go#L157: serveError(w, http.StatusBadRequest, "profile duration exceeds server's WriteTimeout")
pprof.go#L167: serveError(w, http.StatusInternalServerError,
pprof.go#L235: serveError(w, http.StatusNotFound, "Unknown profile")
pprof.go#L259: serveError(w, http.StatusBadRequest, `invalid value for "seconds" - must be a positive integer`)
pprof.go#L263: serveError(w, http.StatusBadRequest, `"seconds" parameter is not supported for this profile type`)
pprof.go#L268: serveError(w, http.StatusBadRequest, "profile duration exceeds server's WriteTimeout")
pprof.go#L273: serveError(w, http.StatusBadRequest, "seconds and debug params are incompatible")
pprof.go#L278: serveError(w, http.StatusInternalServerError, "failed to collect profile")
pprof.go#L289: serveError(w, http.StatusRequestTimeout, err.Error())
pprof.go#L291: serveError(w, http.StatusInternalServerError, err.Error())
pprof.go#L299: serveError(w, http.StatusInternalServerError, "failed to collect profile")
pprof.go#L309: serveError(w, http.StatusInternalServerError, "failed to compute delta")